package cn.stylefeng.guns.modular.time.model.request;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Data
public class NoteRequest {

    @ChineseDescription("笔记ID")
    @NotNull(message = "笔记ID不能为空", groups = {edit.class, delete.class})
    private Long noteId;

    @ChineseDescription("标题")
    @NotBlank(message = "标题不能为空", groups = {add.class, edit.class})
    private String title;

    @ChineseDescription("内容")
    private String content;

    @ChineseDescription("分类/标签")
    private String category;

    @ChineseDescription("页码")
    private Integer pageNo = 1;

    @ChineseDescription("每页条数")
    private Integer pageSize = 10;

    public @interface add {}
    public @interface edit {}
    public @interface delete {}
}

